package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
public class IndeController {

    @RequestMapping("/")
    public String index(){
        return "index";
    }

    @ResponseBody
    @RequestMapping("/delMember")
    public String delMember(){
        return "删除用户";
    }

    @ResponseBody
    @RequestMapping("/addMember")
    public String addMember(){
        return "新增用户";
    }

    @ResponseBody
    @RequestMapping("/updateMember")
    public String updateMember(){
        return "修改用户";
    }


    @ResponseBody
    @RequestMapping("/showMember")
    public String showMember(){
        return "查询用户用户";
    }


    @ResponseBody
    @RequestMapping(value = "/testReqe",method = RequestMethod.POST)
    public String aaa( @RequestParam("username") String username,@RequestParam("password") String password){
        return password+"======"+username;
    }
}
